<!DOCTYPE html>
<html>
  <head>
    <title>Board ID</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/init.js"></script>
    <script type="text/javascript" src="js/show_result.js"></script>
    <script type="text/javascript" src="js/misc.js"></script>
    <script type="text/javascript" src="js/canvas2image.js"></script>
    <script type="text/javascript" src="js/base64.js"></script>
  </head>
  <body onload="loadXmlFile()">
    <div id='selectMenu'>
      <div id="title">AMLogic M3 ICS BoardId Selection</div><br><br>
      <button id="M1_Phase" onclick="do_M1_Phase();">
	Run M1 Phase BoardId
      </button><br><br><br>
      <button id="M2_Phase" onclick="do_M2_Phase();">
	Run M2 Phase BoardId
      </button><br><br><br>
      <div id="enter_Bid">
      <div id="Bid_title">AMLogic M3 ICS BoardId Disassembler</div><br>
	Input BoardId(ex:aa09421100402145): <input type="text" id="BoardId"> </input>
	<button id="disassemble" onclick="do_disassemble_Bid();">
	  Disassemble
	</button>
      </div>
    </div>
    <div id='ShowBoardIdPage'>
      <div id='ShowPage'></div><br />
      <!-- Show items choosed -->
      <div>
	<button type="button" onclick="showResult()">Calculate Board ID</button>
      </div><br />
      <div id='ShowResult'></div>
      <!-- Submit result to PHP -->
      <form id="CalculateBid" action="main.php" method="POST">
	<table boarder=0>
	  <td>Result: </td>
	  <td><input type="text" name="comp_spec" id="InputResult"></td>
	  <tr>
	    <td>Mail: </td>
	    <td><input type="text" name="mail" id="Mail"></td>
	  <tr>
	    <td>Subject: </td>
	    <td><input type="text" name="subject" id="Subject"></td>
	    <td><button type="submit">Send</button></td>
	</table>
      </form>
    </div>
  </body>
</html>
